# version 0.1.0
FROM nginx
MAINTAINER Sky wang "skyjun.wang@qq.com"

WORKDIR /home/app/packer
COPY . /home/app/packer
RUN cp /usr/share/nginx/html/50x.html 50x.html

RUN rm -fr .git*
RUN rm Dockerfile

RUN sed -i 's/root   \/usr\/share\/nginx\/html/root   \/home\/app\/packer/g' /etc/nginx/conf.d/default.conf

EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
